<%--
    Document   : index
    Created on : May 4, 2011, 8:47:16 AM
    Author     : Huynh Ngoc Tin
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
    ArrayList suggestedAuthorNames = (ArrayList) request.getAttribute("suggestedAuthorNames");
    ArrayList authorLinks = (ArrayList) request.getAttribute("authorLinks");
%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Author Suggestion</title>
    </head>
    <body>
        <h1>Building CoAuthor Graph by Crawling from MS-Academic Search !</h1>
        <h2>Please choose an author-name:</h2>
        <table>
            <% 
            for(int i=0; i<suggestedAuthorNames.size(); i++) { %>
            <tr>
                <td>
                    <a href="./MASearchFetcherAuthorConfirmServlet?authorLink=<%=authorLinks.get(i)%>"><%= suggestedAuthorNames.get(i)%></a>
                </td>
            </tr>
            <% }
            %>
        </table>
    </body>
</html>
